package com.zxq.ruoyi.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 指令对象 iot_cmd
 * 
 * @author ruoyi
 * @date 2022-09-14
 */
public class IotCmd extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 数据包id */
    @Excel(name = "数据包id")
    private Long packetId;

    @Excel(name = "数据包姓名")
    private String packetName;

    /** 回复的cmdid，用来配对消息收发 */
    @Excel(name = "回复的cmdid，用来配对消息收发")
    private Long resultId;

    /** 发起方 */
    @Excel(name = "发起方")
    private Long sponsor;

    /** 指令类型*/
    @Excel(name = "指令类型")
    private Long cmdType;

    /** 指令码标识 */
    @Excel(name = "指令码标识")
    private String cmdHex;

    /** 创建者 */
    private Long creator;

    /** 创建时间 */
    private Date createDate;

    /** 更新者 */
    private Long updater;

    /** 更新时间 */
    private Date updateDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPacketId(Long packetId) 
    {
        this.packetId = packetId;
    }

    public Long getPacketId() 
    {
        return packetId;
    }

    public String getPacketName() {
        return packetName;
    }

    public void setPacketName(String packetName) {
        this.packetName = packetName;
    }

    public void setResultId(Long resultId)
    {
        this.resultId = resultId;
    }

    public Long getResultId() 
    {
        return resultId;
    }
    public void setSponsor(Long sponsor) 
    {
        this.sponsor = sponsor;
    }

    public Long getSponsor() 
    {
        return sponsor;
    }
    public void setCmdType(Long cmdType) 
    {
        this.cmdType = cmdType;
    }

    public Long getCmdType() 
    {
        return cmdType;
    }
    public void setCmdHex(String cmdHex) 
    {
        this.cmdHex = cmdHex;
    }

    public String getCmdHex() 
    {
        return cmdHex;
    }
    public void setCreator(Long creator) 
    {
        this.creator = creator;
    }

    public Long getCreator() 
    {
        return creator;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setUpdater(Long updater) 
    {
        this.updater = updater;
    }

    public Long getUpdater() 
    {
        return updater;
    }
    public void setUpdateDate(Date updateDate) 
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() 
    {
        return updateDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("packetId", getPacketId())
            .append("resultId", getResultId())
            .append("sponsor", getSponsor())
            .append("cmdType", getCmdType())
            .append("cmdHex", getCmdHex())
            .append("remark", getRemark())
            .append("creator", getCreator())
            .append("createDate", getCreateDate())
            .append("updater", getUpdater())
            .append("updateDate", getUpdateDate())
            .toString();
    }
}
